import 'package:flutter/material.dart';
import 'package:bts_toolbox/pages/page_views/billing_page.dart';
import 'package:bts_toolbox/pages/page_views/converting_page.dart';
import 'package:bts_toolbox/pages/page_views/setting_page.dart';

part 'my_app_home_page.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // widget根组件
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // 应用名称
      title: 'BT\'s ToolBox',
      // 应用主题
      theme: ThemeData(
        // 主题颜色
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        // 标题栏高度
        appBarTheme: const AppBarTheme(toolbarHeight: 45.0),
      ),
      // 应用首页，主页顶部标题
      home: const MyHomePage(title: 'BT\'s ToolBox'),
    );
  }
}
